package com.suqiu.common.utils;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @author linqx
 */
@Data
public class EmailSendDTO implements Serializable {

    /**
     * 收件人信息
     */
    @Valid
    @NotEmpty(message = "收件人信息不能为空")
    private List<RecipientInfo> recipients;

    /**
     * 签名
     */
    @NotBlank(message = "签名不能为空")
    private String sign;

}
